import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  groupList: '/book/groupList',
  fileList: '/book/file',
  resIndex:'/book/res/list',
  resFiles:'/book/res/files'
}

/**
 * 列表记录
 */
export function groupList (params) {
  return axios({
    url: api.groupList,
    method: 'get',
    params
  })
}


export function fileList(params){
  return axios({
    url: api.fileList,
    method: 'get',
    params
  })
}

export function resIndex(params){
  return axios({
    url: api.resIndex,
    method: 'get',
    params
  })
}
export function resFiles(data){
  return axios({
    url: api.resFiles,
    method: 'post',
    data
  })
}

